package com.zking.ssm.sys.service.impl;

import com.zking.ssm.sys.mapper.RoleMenuMapper;
import com.zking.ssm.sys.model.RoleMenu;
import com.zking.ssm.sys.service.IRoleMenuService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleMenuServiceImpl implements IRoleMenuService {

    @Autowired
    private RoleMenuMapper roleMenuMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return roleMenuMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(RoleMenu record) {
        return roleMenuMapper.insert(record);
    }

    @Override
    public int insertSelective(RoleMenu record) {
        return roleMenuMapper.insertSelective(record);
    }

    @Override
    public RoleMenu selectByPrimaryKey(Long id) {
        return roleMenuMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(RoleMenu record) {
        return roleMenuMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(RoleMenu record) {
        return roleMenuMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<RoleMenu> list(RoleMenu roleMenu, PageBean pageBean) {
        return roleMenuMapper.list(roleMenu);
    }
}
